package de.fuberlin.inf.alp4.uebg2;

import java.util.LinkedList;

public class ActivationQueue extends LinkedList<MethodRequest> {
	private static final long serialVersionUID = 662074615426047461L;
	
	public boolean add(MethodRequest request) {
		int counter = 0;
		for(MethodRequest method : this) {
			if(method.getPrio() < request.getPrio())
				counter++;
		}
		this.add(counter, request);
		return true;
	}
}
